package com.dduggs.note.adapter;

/**
 * 二相转三相的插座适配器
 * Created by ChenJiasheng on 2017/10/27.
 */
public class TwoPlugAdapter implements ThreePlugIf {

    private GBTwoPlug plug;


    public TwoPlugAdapter(GBTwoPlug twoPlug) {
        this.plug=twoPlug;
    }

    @Override
    public void powerWithThree() {
        System.out.println("通过转化 ");
        plug.powerWithTwo();
    }
}
